From 1d060e23afc02529c7698bc81b851f214afa5cd1 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Thu, 6 Apr 2006 17:41:07 +0100 Subject: [PATCH] This adds proper cleanup in case of a failure. Signed-off-by: Stefan Berger --- tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py | 1 + tools/xm-test/tests/vtpm/03_vtpm-susp_res.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py b/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py index ab948b827d..feeb6cb42a 100644 --- a/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py +++ b/tools/xm-test/tests/vtpm/02_vtpm-cat_pcrs.py @@ -46,6 +46,7 @@ except ConsoleError, e: FAIL(str(e)) if re.search("No such file",run["output"]): + vtpm_cleanup(domName) FAIL("TPM frontend support not compiled into (domU?) kernel") console.closeConsole() diff --git a/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py b/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py index 793e4b2afc..7e291763af 100644 --- a/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py +++ b/tools/xm-test/tests/vtpm/03_vtpm-susp_res.py @@ -47,6 +47,7 @@ except ConsoleError, e: FAIL(str(e)) if re.search("No such file",run["output"]): + vtpm_cleanup(domName) FAIL("TPM frontend support not compiled into (domU?) kernel") console.closeConsole() -- 2.30.2